package com.financing.platform.dao;

import java.sql.SQLException;
import java.util.List;

import com.financing.platform.dto.FaUserVisitDTO;
import com.financing.platform.vo.FaUserVisitStatisticVO;

public interface IFaUserVisitDao extends
		IBaseDao  {

	/**
	 * 
	 * @Title: addFaUserVisit
	 * @Description: 添加回访记录 
	 * @param @param faUserVisitDTO
	 * @param @return
	 * @param @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int addFaUserVisit(FaUserVisitDTO faUserVisitDTO) throws SQLException;
	
	/**
	 * 
	 * @Title: queryFaUserVisit
	 * @Description: 查询回访记录 
	 * @param @param faId
	 * @param @return   
	 * @return List<FaUserVisitDTO>   
	 * @throws
	 */
	public List<FaUserVisitDTO> queryFaUserVisit(FaUserVisitDTO faUserVisitDTO);
	
	/**
	 * 获取用户回访统计信息 
	 * @param faId
	 * @return
	 */
	public FaUserVisitStatisticVO queryFaUserVisitStatistic(String faId) throws SQLException;

	public String queryFaIdByLoginName(String loginName)throws SQLException;
	/**
	 * 更新最近访问时间
	 */
	public void updateLastVisitTime(FaUserVisitDTO faUserVisitDTO)throws SQLException;
	
}
